package com.tiange.tgrandomcode.Utils;

import cn.hutool.poi.excel.ExcelReader;
import com.tiange.tgrandomcode.enums.RandomCodeEnum;
import com.tiange.tgrandomcode.exception.ResultCodeEnum;

public class ExcelBindingHeaderUtils {

    /**
     * 随机码excel映射实体
     * @param excelReader
     */
    public static void bindingRandomCode(ExcelReader excelReader) {
        excelReader.addHeaderAlias(RandomCodeEnum.RANDOM_AFTER.getDesc(), RandomCodeEnum.RANDOM_AFTER.getCode());
        excelReader.addHeaderAlias(RandomCodeEnum.ZM.getDesc(), RandomCodeEnum.ZM.getCode());
        excelReader.addHeaderAlias(RandomCodeEnum.RANDOM_IMPORT.getDesc(), RandomCodeEnum.RANDOM_IMPORT.getCode());
        excelReader.addHeaderAlias(RandomCodeEnum.NUM.getDesc(), RandomCodeEnum.NUM.getCode());
        excelReader.addHeaderAlias(RandomCodeEnum.RANDOM_EXPORT.getDesc(), RandomCodeEnum.RANDOM_EXPORT.getCode());
    }
}
